-- GENERATED SPELL FOR [Coilskar Siren] --


function spell0_19768(pUnit, Event) --@Viscous Shield,Self--
pUnit:FullCastSpellOnTarget(38026,pUnit)
pUnit:RegisterEvent('Sorts_19768', 10000, 1)
end

function spell1_19768(pUnit, Event) --@Water Bolt,n/a--
pUnit:FullCastSpellOnTarget(32011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19768', 2500, 1)
end

function Sorts_19768(pUnit, Event)
local choix_sorts_19768 = math.random(0, 1)
if choix_sorts_19768 == 0 then
pUnit:RegisterEvent('spell0_19768', 1, 1)
end
if choix_sorts_19768 == 1 then
pUnit:RegisterEvent('spell1_19768', 1, 1)
end
end

function mob19768_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19768', math.random(1500, 3000), 1)
end

function mob19768_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19768_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19768_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19768, 1, 'mob19768_Action')
RegisterUnitEvent(19768, 2, 'mob19768_Leave')
RegisterUnitEvent(19768, 3, 'mob19768_Kill')
RegisterUnitEvent(19768, 4, 'mob19768_Die')
